﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ordadd.aspx.cs" Inherits="weikebuluo.web.admin.order.ordadd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="Keywords" content="IdeaSoft软件" />
    <meta name="Description" content="IdeaSoft软件微信" />
    <link rel="stylesheet" type="text/css" media="all" href="/css/Bootstrap/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" media="all" href="/css/Bootstrap/bootstrap.responsive.min.css" />
    <link rel="stylesheet" type="text/css" media="all" href="/css/Bootstrap/style.css" />
    <link rel="stylesheet" type="text/css" media="all" href="/css/Bootstrap/themes.css" />
    <link rel="stylesheet" type="text/css" media="all" href="/css/Bootstrap/todc_bootstrap.css" />
    <link rel="stylesheet" type="text/css" media="all" href="/css/Bootstrap/inside.css" />
    <link rel="stylesheet" type="text/css" media="all" href="/css/Bootstrap/resource.css" />
    <link rel="stylesheet" type="text/css" media="all" href="/Scripts/colorChoose/css/jquery.bigcolorpicker.css" />
    <script type="text/javascript" src="/Scripts/JQuery.min.js"></script>
    <script type="text/javascript" src="/Scripts/JQuery.cookie.js"></script>
    <script type="text/javascript" src="/Scripts/Bootstrap.min.js"></script>
    <script type="text/javascript" src="/Scripts/JQuery.form.min.js"></script>
    <script type="text/javascript" src="/Scripts/JQuery.validate.min.js"></script>
    <script type="text/javascript" src="/Scripts/JQuery.validate.methods.js"></script>
    <script type="text/javascript" src="/Scripts/resource.js"></script>
    <script type="text/javascript" src="/Scripts/Inside.js"></script>
    <script type="text/javascript" src="/Scripts/UploadImg.js"></script>
    <title>IdeaSoft软件</title>
    <!--[if IE 7]>
            <link href="/css/Bootstrap/font_awesome_ie7.css" rel="stylesheet" />
        <![endif]-->
    <!--[if lte IE 8]>
            <script src="/Scripts/excanvas_min.js"></script>
        <![endif]-->
    <!--[if lte IE 9]>
            <script src="/Scripts/watermark.js"></script>
        <![endif]-->
</head>
<body>
    <div id="main">
        <div class="container-fluid">

            <div class="row-fluid">
                <div class="span12">
                    <div class="box">
                        <div class="box-title">
                            <div class="span10">
                                <h3><i class="icon-edit"></i>添加产品</h3>
                            </div>
                            <div class="span2"><a class="btn" href="Javascript:window.history.go(-1)">返回</a></div>
                        </div>

                        <div class="box-content">


                            <form action="ordadd.aspx" method="post" class="form-horizontal form-validate">
                            <%if (!string.IsNullOrEmpty(Request.QueryString["id"]))
                              { %>
                                <input type="hidden" name="id" value="<%=Request.QueryString["id"] %>"/><%} %>
                                <div class="control-group">
                                    <label for="name" class="control-label">名称：</label>
                                    <div class="controls">
                                        <input type="text" name="ProName" id="name" class="input-medium" value="<%=prolistmodel.ProName %>" data-rule-required="true" data-rule-maxlength="20" />
                                        <span class="maroon">*</span>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="price" class="control-label">标题：</label>
                                    <div class="controls">
                                        <input type="text" name="ProTitle" id="price" class="input-medium" value="<%=prolistmodel.ProTitle %>" data-rule-required="true"   />
                                        <span class="maroon">*</span><span class="help-inline"></span>
                                    </div>
                                </div>
                                 <div class="control-group">
                                    <label class="control-label" for="pic">图片</label>
                                    <div class="controls"> <img alt="" class="gwbg thumb_img" id="showimg" src="<%=prolistmodel.ProUrl %>" style="max-height: 100px;" />
																					<input class="input-xlarge" type="hidden" id="pic" readonly="" name="ProUrl" value="<%=prolistmodel.ProUrl %>"  data-rule-required="true"/>
                                                                                
                                        <span class="help-inline">
                                            <button class="btn select_img" id="select_img" type="button">选择图片</button><span class="help-inline">建议尺寸：800像素 * 600像素</span>
                                        </span>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="sort" class="control-label">详情：</label>
                                    <div class="controls">
                                        <textarea id="description" name="ProRemark" class="input-xlarge ui-wizard-content ui-helper-reset ui-state-default"
                                style="resize: none; width: 274px; height: 120px;" data-rule-required="true" ><%=prolistmodel.ProRemark%></textarea><span class="maroon">*</span>
                                    </div>
                                </div>
                                <div class="form-actions">
                                <input type="hidden" name="action" value="add" />
                                    <button id="bsubmit" type="submit" data-loading-text="提交中..." class="btn btn-primary">保存</button>
                                    <button type="button" class="btn" onclick="Javascript:window.history.go(-1)">取消</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(function () {
            $("#select_img").initUpload({ showID: 'showimg', hideID: 'pic', savePath: 'ord&dir=image' });
        })
    </script>
</body>
</html>
